<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<a class="ir mn-notice" href="notice_sysMessage_list.htm" title="通知" id="moreNotice">&nbsp;<span></span>
<div class="msgpopup" id="totalNumId">11</div>
</a>
<ul id="msg-details-ul" class="msg-details">
<c:set value="0" var="totalNum"/>
<c:forEach var="remind" items="${remindList}">
	<c:choose>
		<c:when test="${remind.messageType==1}">
			<c:set value="${totalNum+remind.messageCount}" var="totalNum"/>
			<li class="msg-details-li"><a href="notice_sysMessage_list.htm?messageType=1">系统通知(${remind.messageCount})</a></li>
		</c:when>
		<c:when test="${remind.messageType==2}">
			<c:set value="${totalNum+remind.messageCount}" var="totalNum"/>
			<li class="msg-details-li"><a href="notice_sysMessage_list.htm?messageType=2">Ta给我评论(${remind.messageCount})</a></li>
		</c:when>
		<c:when test="${remind.messageType==3}">
			<c:set value="${totalNum+remind.messageCount}" var="totalNum"/>
			<li class="msg-details-li"><a href="notice_sysMessage_list.htm?messageType=3">Ta给我推荐(${remind.messageCount})</a></li>
		</c:when>
		<c:when test="${remind.messageType==4}">
			<c:set value="${totalNum+remind.messageCount}" var="totalNum"/>
			<li class="msg-details-li"><a href="notice_sysMessage_list.htm?messageType=4">Ta关注我(${remind.messageCount})</a></li>
		</c:when>
		<c:otherwise>
			
		</c:otherwise>
	</c:choose>
</c:forEach>
</ul>
<script type="text/javascript">
$('#moreNotice').mouseenter(function(){
	$('.msg-details').show();
	$('.msg-details').mouseleave(function(){
		$(this).hide();
	});
});
if('${totalNum}'=='0'){
	$("#totalNumId").remove();
	$("#msg-details-ul").remove();
}else{
	$("#totalNumId").html('${totalNum}');	
}

</script>